import { Navigate } from "react-router-dom" //重定向组件Navigate
import Graph from "../views/Graph";
import Menu from '../views/Menu'
import GraphForce from "../views/graph-force/graphForce";

const rootRoutes = [
  //路由规则
  {
    path: "/",
    element: <Navigate to="graph" />,
  },
  { path: "graph", element: <Graph /> },
  { path: "menu", element: <Menu /> },
  { path: "force", element: <GraphForce /> },

]

export default rootRoutes